eligibility test function added into validator module