fix registration and profile update