Made the login and logout stuff. User can be Guest if want to.