Fixed authentication errors