added validation for DeviceInfo object