Fixed user logging out when going to profile.