"and" logic for multiple condition in a form