Added validation for username and email max length.

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