Return error in case of authentification failure