Updated validator for template selection in yaml headers