addded required attribute to radio buttons