update to add logout