check validity of kb