add login with flash message