Trying to make the logout work, but it isn't