Fixing the register email service Restful service to expose the functionality to the outside world