Setting up multiple conditions for check boxes