fixing disabling the submit button