Fixed a bug in the update profile form