use correct urlname for login and logout