add form action and validation for radio buttons