private void Password_KeyDown(object sender, KeyEventArgs e)     // Login
        {
            if (e.KeyCode == Keys.CapsLock)
            {
                e.SuppressKeyPress = true;
                CheckCapslock();
            }



            if (e.KeyCode == Keys.Enter)
            {
                ErorMessage.Text = "";
                DatabaseScript.Login(Password.Text);
                Password.Clear();
                ErorMessage.Text = DatabaseScript.errorMessage;
                SetLocation();
            }
        }
 private void LoginButton_MouseClick(object sender, MouseEventArgs e)     // Login
 {
     DatabaseScript.Login(Password.Text);
 }