Rewrote validator based on chriso/validator.js v3.2.0
Replaced str.match(regex) by regex.test(str)