add function to determine if a user has already voted