fix TypeError when trying to send a verify-mail