Validation
moved mail to api (for address validation)