Added saving device registration id in shared preferences upon registering.