Added more validation to posting a vote.