Added basic validation for email addresses.