Fix login page redirection

OpenSun Dec 01 2024

Users are experiencing issues with the login page redirecting to a blank screen. This happens intermittently, and logs show no errors. Investigate the cause and provide a patch. Workaround would be to add logs in the code and check the system workflow