Add error handler for wrong authentication.