Added a utility function to find valid credentials in the audit database.