Switched to inner join to deal with orphaned IP addresses.
Added dependent destroy for AutoLogin IPs.