Adds HTML5 minlength support

Closes #578