private async void OnLoginClicked(object obj) { Preferences.Set("UserEmail", EmailLogin); bool success = await _userDetails.VerifyLogin(EmailLogin, PasswordLogin); if (success) { await Shell.Current.GoToAsync($"//{nameof(HomePage)}"); } else { await App.Current.MainPage.DisplayAlert("Failure", "Username And Password Does Not Exist", "Try Again"); } }