Using the weblogin snippet or WebLoginPE, specify the user groups as a comma separated list in the &groups parameter.
Also how do i make it so when someone signs up there automatically added to a restricted pages group?
&groups=`Registered Users,Publishers,Admins`