added code to update the user details and fetch user details