Added a max date validation rule for datepicker