App closing on login error fixed