Fixed: err msgs were not being displayed in browser.
Refactoring.
Dev. checkpoint.