validate on parse