deal with login from email (bug 1095504, bug 1094498)