correct post url, change form field name to email, used XMLHttpRequest to send request