validation for config files