Modified logout route