i'm trying to avoid sending invalid emails