You could actually close the login thing by hitting the X button after login or register instead of actually logging in/signing up. Of course Twitter was counting on most people not knowing this.
[0]https://www.reddit.com/r/Twitter/comments/sno1md/login_deman...
[1]https://www.reddit.com/r/assholedesign/comments/sod9ej/twitt...