Fixed team deletion. And login/auth errors handling for team/admin accounts.