Why is this needed? Why not leave it as it was with onsubmit="return false" ?