Corrected account management: use explicit flag for the anonymous
account type