added auth fields check in clientside implemented updatedevice