fix issue #354 (data-minlength checked after form submit)