Changed token field to be MAC/IMEI. Set up error returning for device creation.