reimplemnted user update profile logic