if team.error, redirects to teams index