retrieve account type from preferences