simple entity and validator