FIx teams migration
Add logout for teams