Added update profile functionality.