added code to enable users to update their profile