if onsubmit is not defined, overwrite the element