nested if condition inside email show/hide