editing done only if logged in