Fix for the `Undefined property: stdClass::$email` error