Validation for Api and the module