Fix server error to anonymous users on profile page

Moved new offending code into the "auth user if statement"...DUH!