Added header redirect from profile page if not logged in.