Refactor search date errors. Add errors for past dates.