added ip stuff for logged in users of course