How can I make non-required fields as required when other field is filled?