I have custom module that registers customers for an event/product. I created a page that displays the registration form from my module.
The link to the registration page is in the footer.
When a user clicks on the footer link, I don't want users to be able to see the registration form if they aren't logged in.
So I need them to first see the login/register screen and only once they successfully login/register they should get redirected to the page with my module's registration form.