Updated the service interface
Added logic of registration