Fix for issue #5.

Repeatedly submitting invalid form causes submission of form to POST to
originating URL (not to modal view as wanted).
Merge pull request #6 from sheymans/fix_for_resubmitting_form

Fix for issue #5.