making the validator throw an error rather than a complex optional callback
moving all comments at the second line because of: https://github.com/SlexAxton/require-handlebars-plugin/issues/111