Modifica anche questo:

<form NAME="dati" method="POST" ONSUBMIT="return validate()" >