added function to recognize if a user has already voted