add test for downcasing user email and update email formatting