validate attendance