updated to store the first email in local storage

I couldn't figure out how to insert the local storage into the fields
because we are using partials i think is why.