sentence validation