Fixes bug with form submission validation.

Fixes DoSomething/dosomething#2107.