finish sign in functionality