Load and validate config.