Change of error class for end date onchange event