Move date validation to model.