avoid triggering wrong submit in logo forms (fixes #692)

I did not find a pure HTML solution. Still the needed JavaScript code is minimal.