Added login for user. Changed code to use only nodejs as server.