Snippett for create field in registration for users

I have this code that creates a field in the user record, but it is not showing up in the user search. Apparently it seems to be saving or what is entering in the field, but I would like to be able to use it by typing only what was filled in the field. can anybody help me?