move error display of profiles to partial