private async void Login() { User user = await _serverUser.Login(UserName, Password); if (user == null) { Error = "Login failed"; } else { LoginSuccess(user); } }