add function to display error when retriggering fails to submit