Updated serializer class to handle all form element types (radio, checkbox, select, text)