Added validation to DatePicker