Convert user to jsonable content.

Signed-off-by: crynobone <crynobone@gmail.com>
Minor tweak when assigning mail config.

Signed-off-by: crynobone <crynobone@gmail.com>