refactor state validation to return a list of dependand keys if the state validation failed