New define_hidden_fields function

With buddypress 1.6.4 define_hidden_fields function doesn't works and returns all fields of profile.
I have re-wrote the function by different approach. Please, can you check if is ok?