add function signin/signout