add logout when logged in