Add validator to package.json