log SQL authentication on the right branch