disabling button on submitting form and enabling on success

Hi
I was facing an issue of multiple submission of the form, i have added a line to disable the button before form submit and then enabled on success. 
please review