Fixed a bug with date validation not being mandatory