Removed the team name from userinfo, fixed variable scope issues
Fixed accessing the team name