Fix memory leak in team-validator.js
Minor style fix
Keep the user's team as a string until validated