finally got things working so that there is no insert without a proper email