Add test for mixed case email and refactor before save in User