fix how we check if the session exists in order to save the created_on