peró perché funziona tutto ad eccezione del "header location"?