Added support for nested field validation using dot notation.

I am especially not sure about how I implemented the "nested" validation on lines 212-215.