added logging to Login