public static void RegisterEmailValidator(this MembershipRebootConfiguration config, Func <IUserAccountService, UserAccount, string, ValidationResult> func)

        {
            if (config == null)
            {
                throw new ArgumentNullException("config");
            }
            config.RegisterEmailValidator(new DelegateValidator(func));
        }