added error pages and email changes