Implemented pattern (if) validation #80