Test for mixed case email, fixes for email validation