Add some debugging for authentication issues