if team.error, redirects to teams index
Merge pull request #243 from whiteotter/issue-237

if team.error, redirects to teams index