added backend requests for login and update longLat