fix for logout and search terms by name