Added length check for label. Without length check,
label is truncated. Warning is shown by sqlalchemy layer.
Raise an InvalidInput exception when validation fails (like
rest of the surroudning code)
Change-Id: Iae517e03099e36f1c00f4742049834a9231a2fff