adds min length for autocomplete