private void btnStudentOptions_Click(object sender, EventArgs e)
        {
            //option to go to the student menu

            StudentMenu sm = new StudentMenu();

            this.Close();
            sm.Show();
        }
        private void btnLogin_Click(object sender, EventArgs e)
        {
            string username, passEntry;
            string regUser = "******";
            // the password unencrypted = password
            string password = "******";

            //instantiate encryption class hashcode
            Hashcode hash = new Hashcode();

            //assigning user input to variables
            username  = txtUser.Text;
            passEntry = hash.PassHash(txtPass.Text);


            if (username == regUser)
            {
                if (passEntry == password)
                {
                    //instantiate student menu class

                    StudentMenu studmenu = new StudentMenu();

                    MessageBox.Show("Welcome to the DBS System");
                    studmenu.Show();
                    this.Hide();
                }
                else
                {
                    MessageBox.Show("Incorrect Password");
                }
            }
            else
            {
                MessageBox.Show("Invalid User login");
                txtUser.Text = "";
                txtPass.Text = "";
            }
        }