Add flash notification and clear flash message when we're just checking the login state.