Fixed authentication
Finally working authentication (I think)