Common pattern: style on focus, validate when the user leaves the field.
Focus highlights the border; blur checks length.
Lines: 0 | Characters: 0