Fixed a few bugs in UpdateProfileForm