* Throw an error when invalid device_mode is given * Fix lint issue, typo and error msg * Fix error msg