check device status when intializing with token
release device if token is an empty string