Added validateTeamName() function