completed exercises of chapter 7. Added some tests for flash and error divs