it's an AND operation when $valid is determined.