added redirect after login and logout