Store messages in mongodb and fixed double-login issue.