Should have a check function to make sure vendorid is not null
If the user is customer, then the vendorid is null, and we could do something like
if vendorId == NULL return -1, else return vendorId