Check if input type is radio button and checked while transforming form data