Add max length to user login name input field.

Fixes #2317.