validating states