private void button1_Click(object sender, EventArgs e) { if (textBox1.Text.StartsWith("Admin")) { if (textBox3.Text == ai.Pword) { UpdateDBLin ul = new UpdateDBLin(); ul.InsertAdmin(textBox1.Text, textBox2.Text); MessageBox.Show("Admin Inserted"); } else { MessageBox.Show("Password Incorrect"); } } else { MessageBox.Show("Admin Username Must Start with 'Admin'"); } }