moved user search to its own file