invece di:

if ($utente = mysql_fetch_array($result))//

metti:

if(mysql_num_rows($result) == 1)