Extended functionality for https://github.com/chriso/node-validator