private void EnsurePasswordsMatches(Control current, Control checkAgainst)
{
errorProvider.SetError(checkAgainst, null);
if (current.Text != checkAgainst.Text)
{
errorProvider.SetError(current, "Passwords don't match");
cmdOK.Enabled = false;
}
else
{
errorProvider.SetError(current, null);
cmdOK.Enabled = true;
}
}