Adding emailing and email validation logic to site