emit 'register' event