routing login and out