added test for mixed case email
little change in user before_save callback