private void loginBtn_Click(object sender, EventArgs e)
 {
     if (main.setLogin(userName.Text, password.Text))
     {
         status = true;
         this.Close();
     }
     else
     {
         MainClass.showMsg("Login details invalid", "Error", "Error");
     }
 }