modal login
user login control
if (Meteor.isServer) { Meteor.startup(function () { Accounts.onLogin(function(userObj) { Router.go("/"); });
Accounts.onLoginFailure(function(userObj) {
console.log("wrong pwd for " + userObj.user.profile.nickname);
});
}); }