adds logic for errors on homepage and results page
Merge pull request #5 from kylefdoherty/create-alerts

adds logic for errors on homepage and results page