Disables the submit button if any of the required fields are empty.