private async void LoginButton_Click(object sender, RoutedEventArgs e)
        {
            var resourceLoader = Windows.ApplicationModel.Resources.ResourceLoader.GetForCurrentView();

            ViewModel.IsLoading = true;
            bool isAuthed = false;

            try
            {
                isAuthed = await LightKindomHtmlClient.ValidateLoginAuth();
            }
            catch (Exception)
            {
            }

            if (!isAuthed)
            {
                Frame.Navigate(typeof(AuthPage));
                return;
            }

            try
            {
                var   loginTask = ViewModel.TryLogInWithUserInputCredentialAsync();
                await loginTask;
            }
            catch (Exception)
            {
                Debug.WriteLine("Failed to login");
                AppGlobal.User = null;
            }

            if (!AppGlobal.IsSignedIn)
            {
                MessageDialog diag       = new MessageDialog(resourceLoader.GetString("LoginFailedMessageDialogDetail"), resourceLoader.GetString("LoginFailedMessageDialogTitle"));
                var           dialogShow = diag.ShowAsync();
                await         dialogShow;
                ViewModel.IsLoading = false;
            }
            else
            {
                ViewModel.IsLoading = false;
#if WINDOWS_UWP
                SigninPopup.Hide();
#else
                SigninPopup.IsOpen     = false;
                SigninPopup.Visibility = Windows.UI.Xaml.Visibility.Collapsed;
#endif
                await ViewModel.FavoriteSection.LoadAsync(true);
            }
        }