fixinf authentication bug