Fixed condition for validator and callback.
Added child_process requirement.