fix exit when login fail