private void LoginButton_Click(object sender, EventArgs e)
        {
            string user = UsernameTextBox.Text;
            string pass = PasswordTextBox.Text;

            if (newlogin.Verify(user, pass))
            {
                //login to dashboard
                if (newlogin.IspwdReset())
                {
                    //show new/confirm password textboxes and update password
                    PasswordLabel.Hide();
                    NewPasswordLabel.Show();

                    ConfirmPasswordLabel.Show();
                    ConfirmPasswordTextBox.Show();
                    PasswordTextBox.Text = "";
                    MessageBox.Show("Please update your password.");

                    LoginButton.Hide();
                    ConfirmLoginButton.Show();
                }
                else
                {
                    //MessageBox.Show("Login successfull!");
                    this.Hide();
                    Dashboard db = new Dashboard(newlogin.GetUserID());
                    db.Show();
                }
            }
        }
 private void PasswordLabel_MouseClick(object sender, MouseEventArgs e)
 {
     Password.Enabled = true;
     Password.Focus();
     PasswordLabel.Hide();
     PasswordLabel.Enabled = false;
     CheckCapslock();
 }