minLength and maxLength fix

fix where call to node-validate is incorrect.