500 Cannot read properties of undefined (reading 'company_id')