fix [required] and [number] validation. closes #2.