Adds validator for required.