Cannot read properties of undefined (reading 'user_id')