added validation to vote model