Fixed team name validation on server side