fixed signout code