Improve email regex and add test for user email downcase