Move access log from core.inc to login manager and add user_id