Updates the submit directive in order to trigger the success event when the form has been processed successfully