private void changePasswordToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //display the change password form
            mdiChangePasswordForm Change = new mdiChangePasswordForm();

            //set the mode using a specific user
            Change.SetMode(Sec, Sec.UserEMail);
            //show the form as a dialogue
            Change.ShowDialog();
            //get the state of the scurity once done
            Sec = Change.Sec;
        }
        private void reSetPasswordToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //resets the password
            //create a instance of the chnage passord form
            mdiChangePasswordForm Change = new mdiChangePasswordForm();

            //set the mode to change any user password (admin only)
            Change.SetMode(Sec, "");
            //show the form as a dialogue
            Change.ShowDialog();
            //get the new security state
            Sec = Change.Sec;
        }