Team selection: only do it when loging in
Team selection: add some safeguards
Fix support Multiple teams