private void btnLogin_Click(object sender, EventArgs e) { if ((txtUser.Text == "admin" || txtUser.Text == "Admin") && (txtPass.Text == "password" || txtPass.Text == "Password")) { frmUpdateWords update = new frmUpdateWords(); update.Show(); this.Hide(); } else { MessageBox.Show("Invalid log in\nPLease try again", "Invalid Log In"); } }