nit: Please simply use `email` instead of querying the value from the dom element.