fixed compile error and correct the toString of user