Disable posting form submission when $invalid