Added debug messages to auth controller