Add length validator

I'd like to add some useful validators. This is the first one.