Fixed a number of bugs that appeared upon testing login_server.js