MDL-40045 auth: replaced add_to_log call when user logged in with an event