remove form submit on error