update sign in (JS)