Changes to the profile submit functioning