error handling if no qr code scanned