Make configurable the minimum username lenght

The minimum username length should not be hard-coded. In my use case there are some rare usernames with length of 3 characters. So I'm suggesting making the required minimal length configurable. Maybe some other parameters could be configurable too.