salve the problem of the pointer of user is null