corrected email field validation, fixes #1994