add logout , not finished yet