Adds required attribute to avoid empty entries