custom user and group entity class