Error handling in checkboxes and corresponding dates