Fix login iframe, and in a more robust and self-documenting way.  Fixes functional tests