implements user search in server.js
initializes search functionality