"and" logic for multiple conditions in a form