fixed error output when auth