Implementing ballotValidator.