Handling delay between logout and login