refactor EntryValidator to IEntryValidator