Validate and filter.