the email content is know configurable
also added json error messages to responses