added more validation stuff.

Before there was just attribute tags. This time there should be some exception thrown when name is empty or more than 128 characters (I hope)