validations&Email Code