Hi,
The code looks correct as it is to me.
Open Id in this context is not the same thing as rpx/janrain. OpenId in this case refers to a legacy open id implementation that used that url.
rpx/janrain does not use that url "/Secure/RegisterWithOpenID.aspx", it just uses the normal register and login pages.
And when rpx/janrain is enabled then we would not want to show the legacy opein id link
Hope that helps,
Joe