added a function to add teams to an array
Changed validation plugin