Fix/direct login flash messages

Addendum WP [#14385](https://www.openproject.org/work_packages/14385)