private void Login() { User user = authServer.Login(username.Text, password.Text); if (user == null) { status.Text = "Failed to Login"; ResetPassword(); } else { status.Text = "Login Successful"; WindowManager.getInstance().Login(user); } }