Add flash message for /login and /register pages