Added ability to add more conditions on `exists` validation rule. Closes #1140.