autologin working and logout working