fix bug with unauth users trying to view profiles