State validity check