Add some error handling to the unauthenticated state