add error handling and post call to DeviceAuthentications

still need to add DeviceAuthentications controller