Added a check to reject votes if the user has already voted.