Fixed authentication bug.