fix 2 for register redirect