Can you give me some context to why a setTimeout was used?  Validation should be attached to a field and trigger on the field is updated.