upstream is https://github.com/chriso/validator.js