private void NextR1_Click(object sender, System.EventArgs e) { if (usernameTB.Text != "" && passwordTB1.Text != "" && passwordTB2.Text != "") { if (passwordTB1.Text == passwordTB2.Text) { if (SC.Step1(usernameTB.Text, passwordTB1.Text)) { Registration1.Visible = false; Registration3.Visible = false; Registration4.Visible = false; Registration2.Visible = true; } } else { MessageBox.Show("Password doesnt match! Try again!"); } } else { MessageBox.Show("Please fill up all the fields!"); } }