login, register, update location works