add device token register code