example to process custom event (user login)