Username length checks

Length can be specified in settings.
When a username is null or empty, it will show a message that a
username cannot be empty.
When a username is too long, it will show a message that the username
is too long.
Color of the messages is now red.
Merge branch 'max_chars_name' into development