fix checkbox validation