Normalizers in groups and in their profinite completions