ho provato con la funzione ma mi restituisce sempre solo un errore anche se i campi vuoti sono 4