finish sign in functional