logout and login, bugs