Updated flask_app.py to make module imports unconditional, as these dependencies are required regardless of the current REQUIRE_LOGIN configuration. Previously, disabling the login requirement caused potential runtime errors when the application accessed shared logic that depended on these imports. This ensures a more stable codebase and prevents import-related crashes.

Imports should be unconditional