Fixed log out to final version: logging out now removes the model