Validate config