Added validation for username and email max length.
LMS-1479