Add email_validation api and test unit