completed user search functionality