So after this code
for x, y in train_dl:
        # Adds padding to X and y to ensure equal length for echt vector computed in the RNN
        x, y, mask, lengths = padding(x, y, inputDimSize, numClass)
```
But you need to do it for the validation loop too