Adds flash messages for authentication.