fixed error with the submit button