bug where email having uppercase letters was failing