added controller and service for login