Check device ids