update for the first time register device id