working checkbox validation