better login diagnostics