Update server.js

working login, signup, and chat functions