MOSFET choise...

Yes, they did it wrong.

IRF520 is not a logic-level MOSFET. You need one with "logic level" in the name, eg. IRL540.

(The 'L' in 'IRL' is for "Logic Level")