Handle registration callback and redirection