added app insights, tweaked email model validation