updated validation for checkboxes, still not working correctly