Moving some common validations from the stores to the DefaultIdentityManager impl.