created a service for authentication