added missing re-enabling of the submit button