Fixed error which appeared on profile page (other profile). Added force login to a profile page, refs #343