add search function to users