Added admin user detection and switching for social/profile