add modal for email confirmation and error handling. add javascript
functionality to modal on submit.