add an onRegisterUser Event