Using service to register