How to add multiple conditions to form field.