fixed logout and added authentication to sacentries