sets the id to null so we can save it