config: mv validations to validate()