How can i make one checkbox out of a group required?

How can i make one checkbox out of a group required?

for example say I have a contract with two check boxes for "male" and "female".  I want to make it so that one of the two options are required.