Fixed bug where an error when changing password would return the user to the profile edit page instead of the change password page.