SIGN IN SIGN UP

Followup to #7502: add __hash__ method and tests.

A
Antoine Pitrou committed
7bfe89945b6960bb68e27fd25fea421eee9b1fca