Add authentification error handling.