Moved forbidClientAccountCreation checks inside functions instead of preventing their declarations.