fixes #4290 - added validation for max name length of 255