Cleaned and added debug output for external_mail() and also fixed the login() function in parse which had a undeclared response variable