Wait for log out when trying to log in