Fixed bug with user not being logged in viewing team page