Animontage unlike animation.

I am new to both developing games and unreal engine.
I’ve run into a problem with animations and animontages.

In my animation my mannequin is moving properly but when I apply in my blueprint using animontage suddenly the animation is not working properly.
The legs are totally off, the character is not moving properly.

I can’t seem to attach files to the question but can someone tell me what I’m doing wrong?

Never mind.
The solution on the thread below worked.