email cant be converted to string, revised the log statements