use cehck instead of old 'valid'.