log when the user log-in and log-out