Fixing bug for log auth