rendering profile page with conditional login