Update textOptionType.tpl to validate minlength an maxlength