Added both minlength and maxlength validators