removed login check from search function