Datapicker now markes input field invalid if the date is invalid