Refactored disableSubmitButton