I assume you're changing the “name” attribute from the System.User entity to empty, which is the login name of the user. This leads to the user being logged out, as they no longer have valid credentials. If you want a different kind of name, like the user's actual name, I would highly recommend adding another attribute like FullName or a FirstName and LastName attribute.