minSize/maxSize should output more appropirate error message

previously the "length" message was unused, now we check for a matching min/max validation and use the friendlier message if relevant