horrible code but blank search validated