Moving validations from the stores to the DefaultIdentityManager. Code refactoring for the stores.