[IMP]Improved some code in create method of registration to confirm event.