Added a minlength and maxlength validators

If the value === 0, then this will return true. I believe this check should be if (value === undefined || vallue.trim() === '') return true;