Added debug messages to the authLoop