MetaMask no longer injects web3, please help me

This is the line it says the error comes from

maybe user variable was not defined anywhere in the code before

I was able to open the create item button before i added the new lines of code for Genache

Those this error means user is not define? @cryptokid

ReferenceError: user is not defined
    at HTMLButtonElement.openCreateItemButton 

yes, that should mean that variable user was not declared somewhere in the code before trying to access it