logout function and sentimental endpoints