Autocomplete results showing behind the form
I can only speculate as to how you've styled up the second form, but it might be its z-index is higher than that of the autocomplete dropdown.

Trying setting a higher z-index for the autocomplete div in your stylesheet:

#autocomplete {
  z-index: 1000;
}