refactor email downcase method