Working on validation.

warning and validation basics in. more yet to do, but I wanted to get the basics in.