pass a login to the search function