validate against format