Tag: accurate and secure attendance tracking