[FMS-197] Validate email address before sending email. Improve ajax response.