web: use correct attribute for setting primary user when the device is registered