Add validation to voteAction