Add sign in function
Finish sign in