add minLength to autocomplete