added validator to package.json