Form validation only if it has no onsubmit attr