should be looking for 'id' not :id when logging error