add validation to vote model