Fixed account deletion logic.