fixed errors in profile page when no user signed in