Hmmm My if statement was skipped....
So I got a function where I validating everything with flag and innerFlag as integer. First, this is a Windows Form Application write in C#, and I think there was nothing wrong with my logic, and the code return with Validation error. I can't go to Registration Success. I checked everything and I got that my flag wasn't turn 6 because the innerFlag is not even increase. Btw, forget about the picture. Hehe, I still not done with it yet :) Thanks before! private void RegisterButton_Click(object sender, EventArgs e) { int flag = 0, innerFlag = 0; if (Username_Textbox.Text != "Must use @ and .com") { flag++; } for (int i = 0; i < Username_Textbox.Text.Length; i++) { if (Username_Textbox.Text[i] == '@') { innerFlag++; } } if (Username_Textbox.Text[Username_Textbox.Text.Length - 1] == 'm') { innerFlag++; } if (Username_Textbox.Text[Username_Textbox.Text.Length - 2] == 'o') { innerFlag++; } if (Username_Textbox.Text[Username_Textbox.Text.Length - 3] == 'c') { innerFlag++; } if (Username_Textbox.Text[Username_Textbox.Text.Length - 4] == '.') { innerFlag++; } if (innerFlag == 5) { flag++; } if (Username_Textbox.Text != "") { flag++; } if (Password_Textbox.Text != "") { flag++; } if (Confirm_Password.Text == Password_Textbox.Text && Confirm_Password.Text != "") { flag++; } if (Image_Name.Text != "Must jpg or pn