Use config.validate() instead of merge()