pull out logic in competition form

although this actually ends up being more complicated to follow, it's
better for logic within if statements in views to be in helpers where
they're easier to isolate and test.