validate config file