fork-pull: added validation logic