Add missing break

Without the break in the code, the else part of the for loop would be
executed and the flash message would be displayed even if the party is
valid.