diff --git a/remerkleable/complex.py b/remerkleable/complex.py
index c92fa0c..e65160f 100644
--- a/remerkleable/complex.py
+++ b/remerkleable/complex.py
@@ -668,8 +668,12 @@ class Container(ComplexView):
                 raise Exception("cannot have both a backing and elements to init List")
             return super().__new__(cls, backing=backing, hook=hook, **kwargs)
 
+        diff = set(kwargs.keys()).difference(set(cls.fields().keys()))
+        if len(diff) > 0:
+            raise AttributeError(f'The field names {diff} are not defined in {cls}')
+
         input_nodes = []
-        for i, (fkey, ftyp) in enumerate(cls.fields().items()):
+        for fkey, ftyp in cls.fields().items():
             fnode: Node
             if fkey in kwargs:
                 finput = kwargs.pop(fkey)

diff --git a/remerkleable/test_typing.py b/remerkleable/test_typing.py
index 87fed19..dd20833 100644
--- a/remerkleable/test_typing.py
+++ b/remerkleable/test_typing.py
@@ -164,6 +164,12 @@ def test_container():
     except AttributeError:
         pass
 
+    try:
+        Foo(wrong_field_name=100)
+        assert False
+    except AttributeError:
+        pass
+
 
 def test_container_unpack():
     class Foo(Container):

Check if the field name is valid when initialize a Container object
### Issue
Currently, the following call is valid:

```sh
>>> from eth2spec.phase0 import spec
>>> x = spec.AttestationData(bar=1000)
>>> x
AttestationData(Container)
    slot: Slot = 0
    index: CommitteeIndex = 0
    beacon_block_root: Root = 0x0000000000000000000000000000000000000000000000000000000000000000
    source: Checkpoint = Checkpoint(Container)
                             epoch: Epoch = 0
                             root: Root = 0x0000000000000000000000000000000000000000000000000000000000000000
    target: Checkpoint = Checkpoint(Container)
                             epoch: Epoch = 0
                             root: Root = 0x0000000000000000000000000000000000000000000000000000000000000000
```

 I suppose it should have thrown an exception since `bar` is not a valid field in `AttestationData`. 

### How to solve it
Add check in `Container.__new__`
```python
        diff = set(kwargs.keys()).difference(set(fields.keys()))
        if len(diff) > 0:
            raise Exception(f'The field name {diff} is not defined in {cls}')
```
remerkleable/test_typing.py::test_container
remerkleable/test_typing.py::test_subclasses remerkleable/test_typing.py::test_basic_instances remerkleable/test_typing.py::test_basic_value_bounds remerkleable/test_typing.py::test_container_unpack remerkleable/test_typing.py::test_list remerkleable/test_typing.py::test_bytesn_subclass remerkleable/test_typing.py::test_uint_math remerkleable/test_typing.py::test_container_depth remerkleable/test_typing.py::test_tree_depth[0-0] remerkleable/test_typing.py::test_tree_depth[1-0] remerkleable/test_typing.py::test_tree_depth[2-1] remerkleable/test_typing.py::test_tree_depth[3-2] remerkleable/test_typing.py::test_tree_depth[4-2] remerkleable/test_typing.py::test_tree_depth[5-3] remerkleable/test_typing.py::test_tree_depth[6-3] remerkleable/test_typing.py::test_tree_depth[7-3] remerkleable/test_typing.py::test_tree_depth[8-3] remerkleable/test_typing.py::test_tree_depth[9-4] remerkleable/test_typing.py::test_paths remerkleable/test_typing.py::test_bitvector remerkleable/test_typing.py::test_bitvector_iter remerkleable/test_typing.py::test_bitlist remerkleable/test_typing.py::test_bitlist_iter