fix error on submit form