fixed an authentication issue when going to a public profile