fix errors about authentification