In all the tutorials about protected directories the username is always one word. i.e. john235
Can the user name be two words? First and last name?
i.e. Betty Smith?
No, you will need to use one word, I believe that the manual will also explain the maximum character length as well.
I understand the need to customize the login accordingly, But the only alternate would be creating FTP directories if needed that way they can simply access through an FTP client using of course explicit TLS connection for security purposes.
If, you can provide more on what you want to do maybe I can provide some suggestions.