Created a service to handle user actions. Registration implemented.