adds required and match validators