add the ability to validate dates