Added validator that correctly supports SQL's 'required' constraint.

This closes issue #21.