fix regression bug from previous commit allowing unsigned in users to view user profiles