Added support for 4.1

Turns out it was quite a simple fix - haven't fully tested but I can login and post without issue! :)