better support for loggin in mailing