Updating Validation States on #forms and displaying source code example