Fixes bug with form submission validation.