Fixed error message not working in daily attendance report