fun toUserInfo(): UserInfo
Converts into UserInfo. The same info, but without a password.
Return the UserInfo.