fixed the problem with matching an existing email