fix js error (typeahead) in login page