Added ip_lastlog and fixed comment interaction for logged-out users.