set login redirection and logout action