private void Button1_Click(object sender, EventArgs e)
 {
     if (whoLogged == 0)
     {
         userId = DBMng.validateEnrolleeWithPin(textBox1.Text);
         if (userId != 0)
         {
             this.Hide();
             EnrolleeHomePage newform = new EnrolleeHomePage(userId);
             newform.ShowDialog();
         }
         label2.Visible = true;
         textBox1.Text  = "";
     }
     else
     {
         userId = DBMng.validateHSPWithPin(textBox1.Text);
         if (userId != 0)
         {
             this.Hide();
             HSPinfoGUI info = new HSPinfoGUI(userId);
             info.ShowDialog();
         }
         label2.Visible = true;
         textBox1.Text  = "";
     }
 }