Random generation of the device's id in case if it is run in the browser
Authentication is added