private void button1_Click(object sender, EventArgs e)
        {
            MainMenuForm main = new MainMenuForm();

            main.Show();
            this.Hide();
        }
        private void btnLogin_Click(object sender, EventArgs e)
        {
            Realtor  logIn        = new Realtor(txt_username.Text, txt_psswrd.Text);
            Database databasefunc = new Database();

            if (checkFields())
            {
                MySqlCommand command = new MySqlCommand("SELECT * FROM realtor where realtor_username='******' AND realtor_psswrd='" + logIn.Realtor_Password + "'");


                DataTable usertable = databasefunc.getData(command);

                if (usertable.Rows.Count > 0)
                {
                    MainMenuForm main = new MainMenuForm();
                    main.Show();
                    this.Hide();
                }
                else
                {
                    MessageBox.Show("Invalid Username or Password ", "Information");
                }
            }
        }