private void submitButtonChangePassword_Click(object sender, EventArgs e)
        {
            bool passwordCorrect = true;
            //isUsernameAlreadyExists(userNameTextBox.Text);

                if (passwordTextBox.Text != "" && rePasswordTextBox.Text != "")
                {
                    if (passwordTextBox.Text == rePasswordTextBox.Text)
                    {
                        PasswordVerifier pv1 = new PasswordVerifier(passwordTextBox.Text);
                        if (!pv1.IsCharacterLengthCorrect())
                        {
                            passwordCorrect = false;
                            MessageBox.Show("Password must include at least six characters!",
                                "Important", MessageBoxButtons.OK, MessageBoxIcon.Information);
                        }
                        if (!pv1.IsUpperLowerCharacterCaseAmountCorrect())
                        {
                            passwordCorrect = false;
                            MessageBox.Show
                                ("Password must include at least one uppercase letter and one lowercase letter!",
                                "Important", MessageBoxButtons.OK, MessageBoxIcon.Information);
                        }
                        if (!pv1.IsDigitAmountCorrect())
                        {
                            passwordCorrect = false;
                            MessageBox.Show("Password must include at least one digit!",
                                "Important", MessageBoxButtons.OK, MessageBoxIcon.Information);
                        }
                    }
                    else
                    {
                        passwordCorrect = false;
                        MessageBox.Show("The two passwords entered do not match each other!",
                            "Important", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    }
                }
                else
                {
                    passwordCorrect = false;
                    MessageBox.Show("Neither password box can be empty!",
                        "Important", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }

            if (passwordCorrect == true)
            {
                ChangePasswordInFlatFile(passwordTextBox.Text);
                this.Close();
            }
        }
        protected void submitButton_Click(object sender, EventArgs e)
        {
            bool passwordCorrect = true;
            //isUsernameAlreadyExists(userNameTextBox.Text);
            if (userNameTextBox.Text != "" && isUsernameAlreadyExists(userNameTextBox.Text) == false)
            {
                if (passwordTextBox.Text != "" && rePasswordTextBox.Text != "")
                {
                    if (passwordTextBox.Text == rePasswordTextBox.Text)
                    {
                        PasswordVerifier pv1 = new PasswordVerifier(passwordTextBox.Text);
                        if (!pv1.IsCharacterLengthCorrect())
                        {
                            passwordCorrect = false;
                            MessageBox.Show("Password must include at least six characters!",
                                "Important", MessageBoxButtons.OK, MessageBoxIcon.Information);
                        }
                        if (!pv1.IsUpperLowerCharacterCaseAmountCorrect())
                        {
                            passwordCorrect = false;
                            MessageBox.Show
                                ("Password must include at least one uppercase letter and one lowercase letter!",
                                "Important", MessageBoxButtons.OK, MessageBoxIcon.Information);
                        }
                        if (!pv1.IsDigitAmountCorrect())
                        {
                            passwordCorrect = false;
                            MessageBox.Show("Password must include at least one digit!",
                                "Important", MessageBoxButtons.OK, MessageBoxIcon.Information);
                        }
                    }
                    else
                    {
                        passwordCorrect = false;
                        MessageBox.Show("The two passwords entered do not match each other!",
                            "Important", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    }
                }
                else
                {
                    passwordCorrect = false;
                    MessageBox.Show("Neither password box can be empty!",
                        "Important", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
            }
            else
            {
                if (userNameTextBox.Text == "")
                {
                    passwordCorrect = false;
                    MessageBox.Show("Username cannot be empty!",
                        "Important", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
                else
                {
                    passwordCorrect = false;
                    MessageBox.Show("Username already exists!",
                        "Important", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
            }

            if (passwordCorrect == true)
            {
                WriteToFlatFile(userNameTextBox.Text, passwordTextBox.Text);
                //UserInformation uI1 = new UserInformation(userNameTextBox.Text, 1);
                UserInformation.User = userNameTextBox.Text;
                UserInformation.Level = 1;
                using (WelcomeForm wF1 = new WelcomeForm())
                {
                    this.Hide();
                    wF1.ShowDialog();
                    this.Close();
                }
            }
        }