Adding a post register hook

I was trying to send a reply immediately after registration using the handleRegister hook,  realized that the message does not get published because the hook is fired before the actual registration happens, adding a new post register hook and renaming the handle register to   handlePreRegister.