The common way

State the rules, then object

The old way doesn't help the user beyond telling them what they're supposed to do.

Lower case letters, digits and underscore only · must not start with a digit · no spaces, punctuation or accented letters

Nothing typed yet.
The mirror

Show what will be stored

The user can type whatever they want, and the system will fixa it and show the end result.

Nothing typed yet.