minlength method

Makes the element require a given minimum length.