adding logging to user activities