Added autocomplete if attribute set to true

Hello,
It should add the autocomplete feature