add cli register options

Some validation in console need to register external schema json.
I have add --register options in bin/validate.js.
Thanks 
ami44