update near by function gps function last login function