Slightly better handling of logged in users

Also added public profile link to private profile page.