Valid configuration

we keep the truth of the configuration into store. we should valid the configuration using that piece of information.
put the function after `SetStore`? it has to have Store set to work.