datepicker & validation