finally have signout working properly