Restrict the length of user name input

When updating users, user name should not be greater than 255.

Change-Id: Icf99fc2adec8d3a044cca4486f332593a91474fa
Closes-Bug: #1279579
Merge "Restrict the length of user name input"