update sign-in functionality