Judge: Candidates remain on ballot