Introduce getRules method. Issue #4.
Fix rule issue in the _validateField method. Issue #4.