fix device token function: signup can be assigned a deviceToken