Added validation for username and email max length.
LMS-1479
Useranme length fixed in tests.