Added ParseInt for minlength