first try to sign in and then set flash message or we get double flash messages