Added CSS style helper. Rewrote validator