Adding assertions to check credentials.