Config validation.