fixed login, working on logout