validate the radio button