adds some better error reporting on auth errors