added logging
added logging to record user logins