Implement logout route