Track attendance using QR code