Code: Fixes for email.
Adds custom error pages.