Fixed edit profile so it updates when changing data.