Fix redirection after registration.

Fix redirection after registration.