Refactored validation to use the MetaYaml libraru