better routing for logout