Datepicker errors and enable search with no date