Removed error function from autocomplete