added better debug information for when authentication fails