Fixed authentication/unity bugs