adds route for logout hook