check validity is changed