In germany it's only forbidden to save the ip, if you also save data that allows you to look up the identity of the user for the ip.
But if the user allows it, then even that is not forbidden.
Almost all forums and websites with a login save the ip and account combination and none of the sites got in any trouble.
The same goes for sites that log the ip without any user information.