improved email regex and test for email downcasing added