moving checking for mattName uniqueness from saveMatt() to createMatt()