validation errors now removing on page close