You have a typo in forward (you are using foward), so you would need to fix this.
Once this is done, remove the nn.Softmax, as nn.CrossEntropyLoss expects raw logits.
PS: you can post code snippets by wrapping them into three backticks ```, which makes debugging these issues easier.  I’ve formatted the code for you.