Improve config format validation.