validate dates