updated the code to return a created instead of conflict for when the device has been registered already.