Refactor out verifyentry so it can be called both by adding and editing entries