logout route working