Hi Ray,
Thank you for replying.
There is no redirect on the main.php, and the page it lands on seems random. Have no idea why that page was chosen. But anyway, the updated version of Authentication.php did the trick.
Thank you for the quick support!
Best regards,
Chris