Added server code, user model