Fixes to clickDownload(), validating Date