Added error event handlers for checkbox