Update profile functionality.