Fixed bugs with the router and email validation script. Also updated the error emailer.