handle if the user has already voted, use cookies