login and logout working