Factored out checking eauth cfg
Factored out repeated log message