fix bug of unchecked to same names when registering and updating profile