make user factory inherit from entity class