use the autocomplete plugin correctly