Authorization for use and realease a device