event for register and verify