separte validation functions from input.js
Merge branch 'master' of github.com:jillix/bind-filter