Register form and redirection