Quick bug fix and logout

Fixed bugs (naming conventions differed userName vs username in
register, was doing a find on PasswordHashed instead of Password, which
is actually the hashed version of the password)
Implemented rough logout feature