Added some error checking to user logins, conditional login/logout button, basic user profiles.