check if the device belongs to the user