Ensure that credentials are not empty.