Animation rotating after export

Picture say it all, this is what happens with the animation after i import to UE4, I also get this message : Warning : Imported bone transform is different from original. Please check Output Log to see detail of error.

question.png

The skeletal mesh looks just fine, the problem is the animation.

skeleton.png

I probably did something very wrong in the process, but i just started learning animations , so i have literraly no idea what could be the problem.
Here’s the bender file if you need to check it out: