user search function working