Removing traces of logged in. Moving model functionality into model.