how to validate 2 emails that are the same? input1=input2

See this example which does what you are looking for: https://www.wix.com/code/home/example/Custom-Validations.

Thank you very much.