added ability to automatically validate on keyup
making it compatible with checkbox value="true"