Updated server.js

Added Login Functionality. It's without session, Will include session in next update.