now the checkboxes persist but fail when no boxes are ticked