Amend scripts for date input error