private async void Login() { var res = await _authenticationProvider.AuthenticationUser(Username, Password); if (res.Status == AuthenticationStatus.Successfull) { _globalVariables.GetVariable <UsernameGlobalVariable>().SetValue(res.Username); LoggedIn?.Invoke(this, res); } else { InvalidLogin = true; } }