Custom Login Form with Subforms

OK, time for me to admit my total dumb-ass-ness. I just spent a couple of hours trying to work out why my custom login form was breaking every time I entered an invalid username or password. The style sheet was still being loaded but the majority of the navigation was disappearing.

Of course you know where I went wrong already, but just for my own records... don't forget to make your subforms "Available to Public Access Users" as well as the main form itself otherwise they will not load.

That's a couple of hours of my life I won't get back!