datepicker on validate