login/logout working properly