Update user.js

began to implement list, login, auth, logout, main, and online functions