Added a name check for the length of a name