Added logging when a user logs in