Add config validation.