Mike validation

Added validation example and restructured according to new standards

see http://validatejs.org/ for documentation on how to do contraints