Stop propagation of submit event to avoid error