Fixes LoginWindow closing on invalid login.