created a logout service instead of doing the work in the router