Looping through each selected form id