Fix user login and downvote count