Addition of validation object. First two methods have unit-tests, and app.js has been updated to satisfy these.