fixed login issue by forcing a new login attempt before every search.