Fix the registration complete redirection problem