Question:
How do I restrict page 2. so that only registered users can access it otherwise it redirects to the login page. And once logged in, it goes to the downloads page as mentioned in 2.
Check your file settings metabox (edit package page). In allow access field it is set to ‘All Visitors’ by default. You haven’t changed that to role.
Check the attached image.
Thank you