PHP application to validate national identifiers