How to input the email address twice and validate them?