Added custom submit hanlder for the node submit form.