Updating scripts to find date input with validation error and add class to it