CSS Username Input with Focus Ring
One native text input with a strong focus ring. No JavaScript: the error line uses the browser's own validation.
Static demo note: the error text appears from native browser validation after you type an invalid value and leave the field. Nothing is sent anywhere.