added credential filtering for credential resource