working signin and signout