add ability to change validation error messages
404 and error pages + email sends only in production