#2793 added logging to LoginFactory