Added minlength and maxlength for lists