fixed up the login flow a bit
 Fixed a bug in the location search call