Disable the form submit button when appropriate