Add real logout functionality