This is duplicating line 77. Instead put the validate_hash($sudoers) line just above create_resources()