login link looks for opener's parent (catch for iframes)
merged in new changes