Corrected email field validation, fixes #1994

$check returns an empty string when email is invalid, however, the conditional ignores this and assumes the email is empty, throwing the required error.