Better redirect scheme for login/logout