Added validation for attendance