created custom vaidators for dates