Finish sign in function part