Added server-side validation of email.