Added upvote and downvote functions

also beefed up the login system, still needs work though