working on adding showing saying caannot read property '_id' of null