throws error with improperly formatted email