private void GoBackButton_Click(object sender, RoutedEventArgs e)
        {
            LogonWindow main = new LogonWindow();

            App.Current.MainWindow = main;
            UsernameInput.Clear();
            PasswordInput.Clear();
            PasswordRepeat.Clear();
            this.Close();
            main.Show();
        }
        private async void ParseInput(string Username, string Password, string Repeat)
        {
            if (Password == Repeat)
            {
                if (string.IsNullOrWhiteSpace(Password) || string.IsNullOrWhiteSpace(Username))
                {
                    // UsernameInput.Text = "Must enter a username";
                    PasswordInput.Clear();
                    PasswordRepeat.Clear();
                }
                else if (!string.IsNullOrWhiteSpace(Password) && !string.IsNullOrWhiteSpace(Username))
                {
                    //login or create account depending on context
                    var outcome = await Task <bool> .Factory.StartNew(() => AuthenticateAccountCreate(Username, Password));

                    if (outcome)
                    {
                        LogonWindow main = new LogonWindow();
                        App.Current.MainWindow = main;
                        UsernameInput.Clear();
                        PasswordInput.Clear();
                        PasswordRepeat.Clear();
                        this.Close();
                        main.Show();
                    }
                    else
                    {
                        SignupError.Text = "Username taken";
                        UsernameInput.Clear();
                        PasswordInput.Clear();
                        PasswordRepeat.Clear();
                    }
                }
            }
            else
            {
                SignupError.Text = "Passwords didn't match";
                PasswordInput.Clear();
                PasswordRepeat.Clear();
            }
        }