fix for checkbox validation