Figure 3: A login dialog based on the template in Listing 4.