streamlined the login process more, added logout