location change after login/logout