Have login working for server with mongo.