validate config