The code below altes the user when leaves the field empty
if (at.Text == "")
{
MessageBox.Show("Please select user type", "Error", MessageBoxButtons.OK,
MessageBoxIcon.Error);
at.Focus();
return;
}
Note this will be placed in the button and should be the first code