Fixed the auto complete so it hides when the input field loses focus