add length validation for name