repaired radio button validation