adds  service to controller, redirects on login and logout