Read email data from the web form and send to server in JSON format

Also added basic validation to make sure all the fields in the form
are provided