SIGN IN SIGN UP

Clean up the fix to #9324 with some of the suggestions raised on python-dev

in response to the original checkin.

Move the validation from the original loop into a switch statement,
and adjust a platform check in the tests.
B
Brian Curtin committed
c734b312cb8316af0c036323b16caf23545cd21f
Parent: 92f87f7