private void btnRegister_Click(object sender, EventArgs e)
{
string error = ValidateFields();
if (error != String.Empty)
{
MessageBox.Show("Please correct the following :\n\n" + error, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
this.DialogResult = DialogResult.OK;
this.Close();
}