Application migration and apple id association
You have to uninstall (delete) the current iPhoto and re-download it from Mac App Store. You cannot update an app which does not belong to your Apple id. The re-downloaded iPhoto will recognize your previous iPhoto Library.