Input restriction

hello! I would like to “filter” some information in a input text. This text is used for a login name.

I want people to only be able to go forward if:
the name have 2 characters or more (i found how)
the name contains no special characters or punctuation
the name contains no space.

Please help me :slight_smile: