SIGN IN SIGN UP

Fix for SF 777848.

I've been bitten by this myself in the past half year.
I hope this fix is right.
I'll backport this to 2.3.
G
Guido van Rossum committed
70ec0b42b581014f5c8c9092720a26a1988ce0e9
Parent: 27f4961