added account type
debug in sending mail
account type bug