updated users profile code