registering for cloud messaging