use autocomplete api to disable input field