fix relationship with user and log entries