Added a minlength and maxlength validators