Disable button on error