Ensure the credentials are not nil.