looping over categories to generate form select