Functionality for logging IP addresses

Forgot to add this in with the "Log new IP addresses (per user) for
security" commit