adding login api and update location api