added error class to input fields with errors, sections on pages that were missing it, and a bunch of TODO comments