logout working. unfortunately it's unnaccesible because the login function is not properly setting the user object. this still looks better than the previous version