Properly show the error messages on error table.
added the new way of calculating anc visits.