update validity check