Refactor user logout route
Implemented server side search