Hooked up the logout functionality to a route