Check that the credential format is OK