fix an error with setting name and email properties in the case when
their lengthes exceed maximum possible value