Dev: fix 2 small datepicker issues

Dev: fix - date validation not called when datepicker closes by losing
focus
Dev: fix - only part of the datepicker is hidden when invalid date is
entered