Hi Joshua,
You can take a look into the StyleGuide Template.
There you have an example of screens that need registered users and a security error handler on every web flow that redirects to the login screen.
Cheers,
Tiago Simões