Mongodb implementation, design, config variables, ajax login post, when server crashes relogin with same user values