Fix categories creation

The new trigger implementation needs a User object to be passed.