Listing 7.2.1
Sign up functionality