Register member and insert to dataset with prevent duplicate register

and is there any code for redirect user after registration