Fixed exit case when login failed