Initial version of a slimmed and simple vertex validator

Why don't you introduce these (and others) as constants and avoid changing many lines next time.