Main ui-validate directive.