add demo-validate.js