Fixed auto exit for login.