Added method updateVotes() to Login model