add email as configuration option and do more rigurous checks on validity