Fix undefined variable error in saml_detail.

Change-Id: Ifbe2dff5e267cecc203425c49ce01887bc7d9f68
Don't display register button if already done.

Change-Id: I03f08da19120c8988cd8edb99867e8c84bc701f3