refactor eligibility validation process to avoid further code duplication