login and logout working for admin