update auth functions