fixing the assignment of searched users to a dropdown list