added update auth status hook