Before change auth