add email validation to HTML layer