Added more date validation for gregorian and hebrew.