Validate focused field before submitting the form

related to https://github.com/HeHStudy/HeH/issues/2210