It seems the minlength attribute for an field doesn\'t work.
minlength
Is there any other attribute in HTML5 with the help of which I
Add both a maximum and a minimum value. You can specify the range of allowed values: